// Make monochrome colors and set them as default for all pies
// Highcharts.getOptions().plotOptions.pie.colors = (function () {
//         var colors = ['#86bc42', '#86bc42', '#86bc42', '#86bc42','#86bc42', '#86bc42', '#86bc42', '#86bc42'],
//             base = Highcharts.getOptions().colors[0],
//             i;
//         for (i = 0; i < 10; i += 1) {
//             // Start out with a darkened base color (negative brighten), and end
//             // up with a much brighter color
//             colors.push(Highcharts.Color(base).brighten((i - 3) / 4).get());
//         }
//         return colors;
// }());
// 初始化图表
var chart = Highcharts.chart('bingxingtu', {
    chart: {
            type: 'variablepie',
            backgroundColor: '#FFFFFF'
        },
    title: {
        text: ''
    },
    legend:{
        
    },
    tooltip: {
        pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
    },
    plotOptions: {
        pie: {
            allowPointSelect: true,
            cursor: 'pointer',
            dataLabels: {
                enabled: true,
                showInLegend: true.valueOf,
                format: '<b>{point.name}</b>%'
            }
        }
    },
    // colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00','#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
    colors: ['#86bc42', '#f8803b', '#aa47d4', '#f8f25d'],
    credits: { enabled: false },
    exporting: { enabled:false },
    series: [{
        type: 'pie',
        // data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0,135.6, 148.5, 216.4]
        data: [['35', 15.5],['65', 34.5],['55', 22.5],['45', 27.5]]
    }]
});